From: Felix Krull Date: Thu, 31 Oct 2019 12:30:30 +0000 (+0100) Subject: Fix clippy issue X-Git-Tag: archive/raspbian/2022.4-1+rpi1^2~9^2^2~20^2~185 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=75ab3f50cda28f5c2f5d298523526c87006005be;p=ostree.git Fix clippy issue --- diff --git a/rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs b/rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs index e1294a54..fc62267e 100644 --- a/rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs +++ b/rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs @@ -29,8 +29,7 @@ impl RepoCheckoutFilter { /// convenience. pub fn new(closure: F) -> Option where - F: Fn(&Repo, &Path, &libc::stat) -> RepoCheckoutFilterResult, - F: 'static, + F: (Fn(&Repo, &Path, &libc::stat) -> RepoCheckoutFilterResult) + 'static, { Some(RepoCheckoutFilter(Box::new(closure))) }